package com.information.manage.MaintenanceRecord.service.impl;

import com.information.manage.MaintenanceRecord.mapper.quanmianjcMapper;
import com.information.manage.MaintenanceRecord.pojo.quanmianjc;
import com.information.manage.MaintenanceRecord.service.quanmianjcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class quanmianjcServicelmpl implements quanmianjcService {
    @Autowired
    private quanmianjcMapper quanmianjcMapper;

    @Override
    public List<quanmianjc> selectAll() {
        return quanmianjcMapper.selectAll();
    }

    @Override
    public void addMaintQuanmianjc(quanmianjc quanmianjc) {
        quanmianjcMapper.insert(quanmianjc);
    }

    @Override
    public void updateMaintQuanmianjc(quanmianjc quanmianjc) {
        quanmianjcMapper.update(quanmianjc);
    }

    @Override
    public void deleteMaintQuanmianjc(Integer qmjcid) {
        quanmianjcMapper.delete(qmjcid);
    }

    @Override
    public void logicDeleteMaintQuanmianjc(Integer qmjcid) {
        quanmianjcMapper.logicDelete(qmjcid);
    }
}